//
//  IdentityManager.m
//  PPScaleDemo
//
//  Created by 彭思远 on 2021/3/11.
//

#import "IdentityManager.h"

@implementation IdentityManager
#pragma mark -- Init Methods

- (instancetype)init {
    self = [super init];
    if (self) {
        
    }
    return self;
}

#pragma mark -- Class Private Methods

#pragma mark -- Class Public Methods

+ (instancetype)manager {
    static IdentityManager *manager = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        manager = [[IdentityManager alloc] init];
    });
    return manager;
}

#pragma mark -- Function Private Methods

#pragma mark -- Function Public Methods

#pragma mark -- Instance Private Methods

#pragma mark -- Instance Public Methods

- (void)readCurrentUserData{
    _currentUser = [DataCache loadCache:@"currentUserLocCache"];
}

- (void)saveCurrentUserData{
    [DataCache setCache:_currentUser forKey:@"currentUserLocCache"];
}



@end
